<?php
	/**
	* 	会员中心登录之后显示头像、名字、登录ip等信息
	*/
	class UserViewModel extends ViewModel
	{
		public $table = 'user';
		public $view = array(
			'baseinfo'=>array(
				'type'=>INNER_JOIN,
				'on' => 'uid = user_uid'
			)

		);


		public function get_info($field=NULL){
			// $where = array('')
			return $this->field($field)->find();
		}
	}

?>
